package city.spring.modules.material.repository;

import city.spring.modules.material.entity.MaterialreceiptMaterialExtEntity;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：物资领用与物资关系表
 *
 * @author 谢金婷
 * @date 2020-12-17 11:48:32
 */
@Repository
public interface MaterialreceiptMaterialExtRepository extends BaseMapper<MaterialreceiptMaterialExtEntity> {
    List<MaterialreceiptMaterialExtEntity> getMaterials(@Param(Constants.WRAPPER) Wrapper<? extends MaterialreceiptMaterialExtEntity> wrapper);

    List<MaterialreceiptMaterialExtEntity> getReceiptMaterials(String materialreceiptId);

    MaterialreceiptMaterialExtEntity getReceiptMaterial(String materialreceiptId, String extId);

    List<MaterialreceiptMaterialExtEntity> getReceiptMts(String materialreceiptId);


    List<MaterialreceiptMaterialExtEntity> getByMaterialreceiptId(String materialreceiptId);
}